#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	srand(time(0));
	vector<int> V(40);
	generate(V.begin(),V.end(),
			boost::bind(modulus<int>(), boost::bind(rand), 40));

	sort(V.begin(),V.end());
	V.erase( unique(V.begin(),V.end()),
			V.end());
	copy(V.begin(),V.end(),
			ostream_iterator<int>(cout, " "));
	cout<<endl;

	cout<<"V.size:"<<V.size()<<endl;
}
